package com.ruoyi.system.enums;

import com.google.common.collect.Lists;

import java.util.List;

/**
 * 消息中间件相关枚举
 */
public enum MqEnum {

    KEYMAT_BIND("KEYMAT_BIND","关键物料绑定"),

    DATA_COLLECTION("DATA_COLLECTION","过站信息"),

    MESSAGE_PUSHING("MESSAGE_PUSHING","告警信息"),

    DATA_CASENUMBER("DATA_CASENUMBER","包装信息");

    String code;
    String desc;

    MqEnum(String code, String desc) {

        this.code = code;
        this.desc = desc;

    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static List<String> getAllType() {
        List<String> typeList = Lists.newArrayList();
        for (MaterialEnum c : MaterialEnum.values()) {
            typeList.add(c.getDesc());
        }
        return typeList;
    }

}
